package com.tangly.codeing.service;

import com.tangly.codeing.model.SysUserRole;
import com.tangly.codeing.utils.PageInfo;
import com.tangly.codeing.utils.ReturnT;

import java.util.List;

/**
 * 用户角色
 *
 * @author tangbing
 * @date 2019-05-06
 */
public interface SysUserRoleService {

    /**
     * 新增
     */
    ReturnT<String> insert(SysUserRole sysUserRole);

    /**
     * 删除
     */
    ReturnT<String> delete(Long userId);

    /**
     * 批量删除
     */
    ReturnT<String> batchDelete(List<Long> ids);

    /**
     * 更新
     */
    ReturnT<String> update(SysUserRole sysUserRole);

    /**
     * Load查询
     */
    SysUserRole load(int id);

    /**
     * 分页查询
     */
    PageInfo pageList(PageInfo pageInfo);

    int saveOrUpdate(List<SysUserRole> sysUserRoleList);
}
